home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 1544 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.3 KB

  1. Path: clobber.unterland.de!not-for-mail
  2. Newsgroups: comp.sys.amiga.programmer
  3. From: "Martin Biallas" <billy@clobber.unterland.de>
  4. Date: Sat, 20 Jan 1996 13:58:58 +0100
  5. X-NewsReader: IntuiNews 1.3a (7.9.95)
  6. Subject: Q: Whats so special about RKMs View example?? I need Help!
  7. Message-ID: <42386127@clobber.unterland.de>
  8.  
  9. Hello!
  10.  
  11. In the RKM Libraries on page 556 is the example how you create your own view (in
  12. fact one viewport for the view).
  13. This example seemd very interesting to me. So I decided to code it. Because "my"
  14. language is assembler, I had to translate this whole example.
  15. Now it is finished, and it works ... very strage! :) Probably I ve made somewhere
  16. an failure in my translation. But I seeked for an error but I found nothing!
  17.  
  18. Therefore I would like to ask, if someone is here who can help me. You don t have
  19. to be an assembler coder to help me, it s enough if you can describe in words what
  20. a C line means.
  21.  
  22. As said above, the language C is not familiar to me. Maybe there is somewhere a
  23. line I had misunderstood ... which line could this be?
  24.  
  25.  
  26. Perhaps a description of the failure could help ...
  27. At the beginning everything is ok. I allocate memory for all structure I need and
  28. for my bitplane (two colors). The bitplane memory is located in chip mem, the other
  29. things are in pub mem, and every allocated mem is cleared.
  30. Every library call that returns a value returns the correct one (i.e. no error).
  31. Somewhere in the middle of my code I call Loadview.
  32. It seems to work so far; my worbenchscreen disappeares. After I had loaded the old
  33. view, my wbscreen was back, again.
  34. The first problem is: my view isn t empty. On the screen is either garbage or there
  35. is a very distorted picture of an other screen.
  36. Next problem: When I free all memory I allocated before, the amiga crashes.
  37.  
  38. The last problem is, in my point of view, the most confusing. But it could indicate
  39. an error in my code.
  40. When I start my code over and over again (for that purpose I hadn t freed my
  41. memory, so the amiga didn t crashes while the code-cleanup), it even crashed a few
  42. times.
  43. A closer look with the debugger showed me, that sometimes the MrgCop call fails.
  44. Somewhere within the routine a priviledge error occurs. (move.w  yx,sr).
  45.  
  46. Thats all.
  47.  
  48.  
  49. Ok then ... thanks in advance and have a nice day!
  50.  
  51.  
  52.  
  53. Bye ...
  54.  
  55.         Martin
  56. billy@clobber.unterland.de
  57. To get my PGP Pubkey send a mail with Subject 'SendPGP'.
  58.